QPalette { background: #D4D4D4; }*{ outline: 0px; }

QMenu
{
	background-color: rgb(253,253,254);
	padding: 0px;
	border-radius: 15px;
}

QMenu::item
{
	font-size: 10pt;
	color: rgb(0,0,0);
	background-color: rgb(253,253,254);
	padding: 8px 25px 6px 15px;
	margin: 0px;
}

QMenu::item:selected
{
	background-color: rgb(236,236,237);
}

QMenu::right-arrow
{
	image:url(:/qss/res/right_arrow.png);
}

QMenu::icon:checked
{
	background: rgb(253,253,254);
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
}

QMenu::icon:checked:selected
{
	background-color: rgb(236,236,237);
}

QMenu::separator
{
	height: 1px;
	background: #E6E8EB;
}

QLineEdit
{
	border-style: none;
	border-radius: 1px;
	padding: 3 3px;
	background: #D4D6D9;
}

QScrollBar:horizontal
{
	background: none;
	padding: 0px;
	border-radius: 6px;
	max-height: 12px;
}

QScrollBar::handle:horizontal
{
    background: #181818;
    min-width: 50px;
    border-radius: 6px;
}

QScrollBar::handle:horizontal:hover
{
    background: #2A2C32;
}

QScrollBar::handle:horizontal:pressed
{
    background: #2A2C32;
}

QScrollBar::add-page:horizontal{
    background: none;
}

QScrollBar::sub-page:horizontal
{
    background: none;
}

QScrollBar::add-line:horizontal
{
    background: none;
}

QScrollBar::sub-line:horizontal
{
    background: none;
}

QScrollBar:vertical
{
	background: #E6E8EB;
	padding: 0px;
	border-radius: 4px;
	max-width: 8px;
}

QScrollBar::handle:vertical
{
	background: #92969B;
	min-height: 50px;
	border-radius: 4px;
}

QScrollBar::handle:vertical:hover
{
    background: #2A2C32;
}

QScrollBar::handle:vertical:pressed
{
    background: #2A2C32;
}

QScrollBar::add-page:vertical
{
    background: none;
}

QScrollBar::sub-page:vertical
{
    background: none;
}

QScrollBar::add-line:vertical{
    background: none;
}

QScrollBar::sub-line:vertical{
    background: none;
}

QSplitter {
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
}

QSplitter::handle {
    width: 8px;
    background-color: #e0e0e0;
    border: 1px solid #c0c0c0;
}

QListView
{
    background: #E6E8EB;
    border-style: none;
}

QListView::item:selected
{
    color: #000000;
    background: #C3C5C7;
}

QListView::item:hover
{
    background: #D7D9DB;
}

QListView::item
{
    border-bottom: 1px solid #DADCDF;
}

/*************************************************
*  iconfont 按钮
*************************************************/

.IconfontBtn
{
    background: none;
    border-style: none;
    color: #B9CCE4;
}

.IconfontBtn:hover
{
    color: #FFFFFF;
}

.IconfontBtn:pressed
{
    color: #FFFFFF;
}

.IconfontBtn:checked
{
    color: #FFFFFF;
}

.IconfontBtn:disabled
{
    color: #D7D7D7;
}

.IconfontBtn[white_bk="true"]
{
    background: none;
    border-style: none;
    color: #6E7882;
}

.IconfontBtn[white_bk="true"]:hover
{
    color: #6E78FF;
}

.IconfontBtn[white_bk="true"]:pressed
{
    color: #6E78FF;
}

.IconfontBtn[white_bk="true"]:checked
{
    color: #6E78FF;
}

.IconfontBtn[white_bk="true"]:disabled
{
    color: #D7D7D7;
}

QWidget[form="WxMainWindow"]
{
    border: 1px solid #366CB3;
	background: #FFFFFF;
}

QWidget[form="WxMainWindow"] QPushButton[toolbar="true"],QPushButton[toolbar_close="true"]
{
	color: #6E7882;
    background: none;
}

QWidget[form="WxMainWindow"] QPushButton[toolbar="true"]:hover
{
	color: #6E7882;
    background: #E5E5E5;
}

QWidget[form="WxMainWindow"] QPushButton[toolbar="true"]:pressed
{
	color: #6E7882;
    background: #D2D2D2;
}

QWidget[form="WxMainWindow"] QPushButton[toolbar_close="true"]:hover
{
	color: #FFFFFF;
    background: #F44336;
}

QWidget[form="WxMainWindow"] QPushButton[toolbar_close="true"]:pressed
{
	color: #FFFFFF;
    background: #DC3C30;
}

QWidget[form="NavPanel"]
{
    background: #366CB3;
}

QWidget[form="UserDetail"]
{
	border: 1px solid #366CB3;
    background: #FFFFFF;
	color: #000000;
}

QWidget[form="UserDetail"] QLabel[link="true"]:hover,QLabel[link="true"]:hover
{
	color: #396EE6;
}

QWidget[form="UserDetail"] QLabel[title="true"]
{
	color: #808080;
}

QWidget[form="UserDetail"] QLabel[username="true"]
{
	font-size: 14px;
}

QWidget[form="UserDetail"] QLabel[sex="true"]
{
	color: #2090F4;
}

QWidget[form="UserDetail"] QPushButton[sendmsg="true"]
{
    border-style: none;
    min-width: 72px;
    min-height: 32px;
    background: #118DF2;
    color: #FFFFFF;
	border-radius: 2px;
}

QWidget[form="UserDetail"] QPushButton[sendmsg="true"]:hover
{
    background: #46A7F6;
}

QWidget[form="UserDetail"] QPushButton[sendmsg="true"]:pressed
{
    background: #0D7CF3;
}

QWidget[form="UserDetail"] QPushButton[sendmsg="true"]:disabled
{
    background: #D7D7D7;
}

/*************************************************
* 自定义对话框 BaseDlg
*************************************************/

QWidget[form="title"]
{
    color: #000000;
    background: #FFFFFF;
}

QWidget[form="title"] QLabel
{
    color: #000000;
}

QWidget[form="title"] QPushButton[toolbar="true"],QPushButton[toolbar_close="true"]
{
	color: #6E7882;
    background: none;
}

QWidget[form="title"] QPushButton[toolbar="true"]:hover
{
	color: #6E7882;
    background: #E5E5E5;
}

QWidget[form="title"] QPushButton[toolbar="true"]:pressed
{
	color: #6E7882;
    background: #D2D2D2;
}

QWidget[form="title"] QPushButton[toolbar_close="true"]:hover
{
	color: #FFFFFF;
    background: #F44336;
}

QWidget[form="title"] QPushButton[toolbar_close="true"]:pressed
{
	color: #FFFFFF;
    background: #DC3C30;
}

QWidget[form="BaseDlg"]
{
    background:#FFFFFF;
}

QWidget[form="BaseDlg"] .QPushButton
{
    border-style: none;
    min-height: 28px;
    background: #3D77DA;
    color: #FFFFFF;
	border-radius: 2px;
}

QWidget[form="BaseDlg"] .QPushButton:hover
{
    background: #6598F0;
}

QWidget[form="BaseDlg"] .QPushButton:pressed
{
    background: #105DE2;
}

QWidget[form="BaseDlg"] .QPushButton:disabled
{
    background: #D7D7D7;
}

QWidget[form="BaseDlg"] .QPushButton#m_btnNo
{
    border: 1px solid #D9D9D9;
    background: none;
    color: #000000;
	border-radius:2px;
}

QWidget[form="BaseDlg"] .QPushButton#m_btnNo:hover
{
    border: 1px solid #40A9FF;
	color: #40A9FF;
}

QWidget[form="BaseDlg"] .QPushButton#m_btnNo:pressed
{
    border: 1px solid #40A9FF;
	color: #40A9FF;
}

QWidget[form="BaseDlg"] .QPushButton#m_btnNo:disabled
{
    background: #D7D7D7;
}

QWidget[form="BaseDlg"] .QPushButton#m_btnLogin
{
    border-radius: 19px;
    min-height: 38px;
}

QWidget[form="BaseDlg"] .QLineEdit
{
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 2px;
}

/*************************************************
* ChatPanel
*************************************************/

QWidget[form="ChatPanel"]
{
    color: #000000;
    background: #F2F3F5;
}

QWidget[form="ChatPanel"] QPushButton[btnSend="true"]
{
    background: none;
    border-style: none;
    color: #6E7882;
}

QWidget[form="ChatPanel"] QPushButton[btnSend="true"]:hover
{
	color: #468CEB;
    border-style: none;
}

QWidget[form="ChatPanel"] QPushButton[btnSend="true"]:pressed
{
	color: #468CEB;
    border-style: none;
}

QWidget[form="ChatPanel"] QTextEdit
{
	border-top: 1px solid #DCDEE0;
	background: #F2F3F5;
	padding: 8px 25px 6px 15px;
}

QWidget[form="ChatPanel"] QListWidget[ChatHistoryList="true"] {
    color: rgb(51, 51, 51);
    border: 1px solid #F2F3F5;
    background-color: #F2F3F5;
    outline: 0px;
}

QWidget[form="ChatPanel"] QListWidget[ChatHistoryList="true"]::Item {
    border: 1px solid #F2F3F5;
    background-color: #F2F3F5;
}

QWidget[form="ChatPanel"] QListWidget[ChatHistoryList="true"]::Item:hover {
    border: 1px solid #F2F3F5;
    background-color: #F2F3F5;
}

QWidget[form="ChatPanel"] QListWidget[ChatHistoryList="true"]::item:selected {
    color: black;
    border: 1px solid #F2F3F5;
    background-color: #F2F3F5;
}

QWidget[form="ChatPanel"] QListWidget[ChatHistoryList="true"]::item:selected:!active {
    color: rgb(51, 51, 51);
    border: 1px solid #F2F3F5;
    background-color: #F2F3F5;
}

/*************************************************
* FriendList
*************************************************/

QWidget[form="FriendList"]
{
    color: #000000;
    background: #E6E8EB;
	border-right: 1px solid #D4D6D9;
}

/*************************************************
* FriendList
*************************************************/

QWidget[form="TopToolbar"]
{
    color: #000000;
    background: #F2F3F5;
	border-bottom: 1px solid #DCDEE0;
}

/*************************************************
* IconfontPanel
*************************************************/

QWidget[form="IconfontPanel"]
{
    background: #FFFFFF;
	border-style: none;
}

QWidget[form="IconfontPanel"] QPushButton[IconfontBtn="true"]
{
    background: none;
    border-style: none;
    color: #555555;
	font-weight: bold;
}

QWidget[form="IconfontPanel"] QPushButton[IconfontBtn="true"]:hover
{
	background: #1890FF;
	border-radius: 6px;
	color: #FFFFFF;
}

QWidget[form="IconfontPanel"] QPushButton[IconfontBtn="true"]:pressed
{
	background: #1890FF;
	border-radius: 6px;
	color: #FFFFFF;
}

/*************************************************
* UserPanel
*************************************************/

QWidget[form="UserPanel"]
{
    background: #FFFFFF;
	border-radius: 6px;
}

QPushButton[Circular="true"]
{
    min-width: 50px;
    max-width: 50px;
    max-height: 50px;
    min-height: 50px;
    border-radius: 25px;
    font-size: 15px;
    color: white;
    background: #f44336 ; /* 默认颜色 */
}

QPushButton[Circular="true"]:hover
{
    font-size: 18px;
    color: white;
    background: #f44300; /* 悬停颜色 */
}

QPushButton[Circular="true"]:pressed
{
    background: #f44322 /* 按下颜色 */
}

/*************************************************
* CarouselPanel
*************************************************/

QPushButton[CarouselPanel="true"]
{
    min-width: 20px;
    max-width: 20px;
    max-height: 3px;
    min-height: 3px;
    border-radius: 1px;
    background: #7282A1;
}

QPushButton[CarouselPanel="true"]:checked
{
	min-width: 30px;
    max-width: 30px;
    background: #FFFFFF;
}
